﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HynuIOTA.Entity.ViewEntitys
{
    public class ChangePasswordViewModel
    {
        [Required]
        public string oldPassword { get; set; }
        [Required]
        public string newPassword { get; set; }
        [Required]
        [Compare("newPassword",ErrorMessage = "两次输入密码不匹配!")]
        public string newPassword1 { get; set; }
    }
}
